Optimal. Leaf size=26 \[ -\frac{i c (a+i a \tan (e+f x))^m}{f m} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0857937, antiderivative size = 26, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.103, Rules used = {3522, 3487, 32} \[ -\frac{i c (a+i a \tan (e+f x))^m}{f m} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3522
Rule 3487
Rule 32
Rubi steps
\begin{align*} \int (a+i a \tan (e+f x))^m (c-i c \tan (e+f x)) \, dx &=(a c) \int \sec ^2(e+f x) (a+i a \tan (e+f x))^{-1+m} \, dx\\ &=-\frac{(i c) \operatorname{Subst}\left (\int (a+x)^{-1+m} \, dx,x,i a \tan (e+f x)\right )}{f}\\ &=-\frac{i c (a+i a \tan (e+f x))^m}{f m}\\ \end{align*}
Mathematica [B] time = 3.6697, size = 95, normalized size = 3.65 \[ -\frac{i c 2^m \left (e^{i f x}\right )^m \left (\frac{e^{i (e+f x)}}{1+e^{2 i (e+f x)}}\right )^m \sec ^{-m}(e+f x) (\cos (f x)+i \sin (f x))^{-m} (a+i a \tan (e+f x))^m}{f m} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.012, size = 25, normalized size = 1. \begin{align*}{\frac{-ic \left ( a+ia\tan \left ( fx+e \right ) \right ) ^{m}}{fm}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.8179, size = 32, normalized size = 1.23 \begin{align*} -\frac{i \, a^{m} c{\left (i \, \tan \left (f x + e\right ) + 1\right )}^{m}}{f m} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.64044, size = 89, normalized size = 3.42 \begin{align*} -\frac{i \, c \left (\frac{2 \, a e^{\left (2 i \, f x + 2 i \, e\right )}}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}\right )^{m}}{f m} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 18.0307, size = 119, normalized size = 4.58 \begin{align*} \begin{cases} x \left (- i c \tan{\left (e \right )} + c\right ) & \text{for}\: f = 0 \wedge m = 0 \\x \left (i a \tan{\left (e \right )} + a\right )^{m} \left (- i c \tan{\left (e \right )} + c\right ) & \text{for}\: f = 0 \\c x - \frac{i c \log{\left (\tan ^{2}{\left (e + f x \right )} + 1 \right )}}{2 f} & \text{for}\: m = 0 \\\frac{i c \left (i a \tan{\left (e + f x \right )} + a\right )^{m} \tan{\left (e + f x \right )}}{- f m \tan{\left (e + f x \right )} + i f m} + \frac{c \left (i a \tan{\left (e + f x \right )} + a\right )^{m}}{- f m \tan{\left (e + f x \right )} + i f m} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.54876, size = 31, normalized size = 1.19 \begin{align*} -\frac{i \,{\left (i \, a \tan \left (f x + e\right ) + a\right )}^{m} c}{f m} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]